package org.edu.modules.stu.jis.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.edu.common.base.BaseEntity;
import org.hibernate.validator.constraints.Length;

import java.io.Serializable;

/**
 * entity-指标加减分设置表
 */
@TableName("ve_stu_idx_score_config")
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "指标加减分设置表对象", description = "ve_stu_idx_score_config")
public class VeStuIdxScoreConfig extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableField
    @ApiModelProperty(value = "指标ID")
    private Integer idxId;

    @TableField
    @ApiModelProperty(value = "指标名称")
    @Length(max = 255)
    private String name;

    @TableField
    @ApiModelProperty(value = "指标类型名称")
    @Length(max = 255)
    private String attrName;

    @TableField
    @ApiModelProperty(value = "指标类型")
    @Length(max = 50)
    private String attribute;

    @TableField
    @ApiModelProperty(value = "指标加分")
    private Integer addScore;

    @TableField
    @ApiModelProperty(value = "指标减分")
    private Integer minusScore;

    @TableField
    @ApiModelProperty(value = "加分单位类型")
    private Integer addType;

    @TableField
    @ApiModelProperty(value = "减分单位类型")
    private Integer minType;

    @TableField
    @ApiModelProperty(value = "分值单位")
    @Length(max = 50)
    private String addUnit;

    @TableField
    @ApiModelProperty(value = "减分单位")
    @Length(max = 50)
    private String minUnit;

    @TableField
    @ApiModelProperty(value = "排序")
    private Integer listSort;
}
